/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.Observer;

/**
 *
 * @author usuario
 */
public class Test {
    public static void main(String[] args){
        AlarmaArticulo a = new AlarmaArticulo();
        
        a.agregar(new Compras());
        a.agregar(new Administracion());
        a.agregar(new Stock());
        
        Articulo articulo = new Articulo();
        articulo.setEstado("Malo");
        
        Tienda t = new Tienda();
        t.devuelveArticulo(articulo);
    }
}
